const App = getApp();

Component({
  options: {
    addGlobalClass: true,
  },
  /**
   * 组件的属性列表
   */
  properties: {
    pageName:String,
    showIcon:{
      type:Boolean,
      value:true
    },
  },

  /**
   * 组件的初始数据
   */
  data: {
    navHeight:App.globalData.navHeight,
    navTop:App.globalData.navTop,
    windowHeight:App.globalData.windowHeight
  },
  lifetimes: {
    attached: function () {
      this.setData({
        navH: App.globalData.navHeight
      })
     }
  },
  /**
   * 组件的方法列表
   */
  methods: {
    //回主页
    _toIndex: function () {
      console.log(6666)
    },
  }
})